#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
//int fun(char s[])
//{
//    int n = 0;
//    while (*s <= '9' && *s >= '0')
//    {
//        n = 10 * n + *s - '0';
//        s++;
//    }
//    return(n);
//}
//int   a = 1;
//int  f(int   c)
//{
//    static  int  a = 2;
//    c = c + 1;
//    return  (a++) + c;
//}
void f(int b[])
{
    int i;
    for (i = 2; i < 6; i++)
        b[i] *= 2;
}

int main()
{/*
    char  arr[2][4];
    strcpy(arr[0], "you");  strcpy(arr[1], "me");
    arr[0][3] = '&';
    printf("%s \n", arr[0]);*/
   // printf("%d\n", strlen("ATS\n012\1\\"));
   // printf("%c", "\tc\065\xff\n");
  //  printf("%d\n", NULL);
  /*  int a = 7, b = 8, * p, * q, * r;
    p = &a; q = &b;
    r = p; p = q; q = r;
    printf("%d,%d,%d,%d\n", *p, *q, a, b);*/
   /* int  a[10] = { 1,2,3,4,5,6,7,8,9,10 }, * p = &a[3], b;
    b = p[5];
    printf("%d", b);*/
   /* char s[10] = { '6','1',' *','4','*','9','*','0','*' };
    printf("%d\n", fun(s));*/
    //char* s = "\\"Name\\Address\n";
    //char* sp;  *sp = "right!";
    //char  s[10];  s = "right!";
   // char* p = "abcdefgh";
   // p += 2;
   // printf("%s\n",strcopy(p, "ABCD"));
   /* char* s = "\039\tcac";
    for (;*s != '\0'; s++) 
        printf(" * ");*/

  //  printf("%d\n", strlen(strcpy(p, "ABCD")));
    /*char* p1, * p2, str[50] = "xyz";
    p1 = "abcd";
    p2 = "ABCD";
    strcpy(str + 2, strcat(p1 + 2, p2 + 1));
    printf("%s", str);*/
   /* int   i, k = 0;
    for (i = 0; i < 2; i++) { int   a = 3;   k += f(a); }
    k += a;
    
    printf("%d %d\n", k,a);*/
    int a[10] = { 1,2,3,4,5,6,7,8,9,10 }, i;
    f(a);
    for (i = 0; i < 10; i++)
        printf("%d,", a[i]);

	return 0;
}